package com.car.dal.dao.storage;

import java.util.List;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.TgStorage;
import com.car.util.Page;

public class StorageDaoImp extends IbatisCommonDao<TgStorage, Long> implements StorageDao{

	@Override
	public List<TgStorage> getStorageByType(TgStorage storage, Page page) {
		storage.setFirstrownum(page.getFirstrownum());
		storage.setPagesize(page.getPagesize());
		return this.queryForEntityList(TgStorage.class, "getTgStorageByType", storage);
	}

	@Override
	public Integer getCountStorageByType(TgStorage storage) {
		return this.queryForInteger("getCountStorageByType", storage);
	}

}
